<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{THEME_STYLE_PATH}style/css/default_new.css" type="text/css" rel="stylesheet" />
<script src="{THEME_STYLE_PATH}style/js/jquery.min.js"></script>
<script src="{THEME_STYLE_PATH}style/js/core.js"></script>
<link href="{THEME_STYLE_PATH}style/css/percenter1.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="/js/DD_belatedPNG.js"></script>
<script>
  DD_belatedPNG.fix('*');
</script>
<![endif]-->
<!--[if IE 6]>
<style type="text/css">
    html{overflow:hidden;}
    body{height:100%;overflow:auto;}
</style>
<![endif]-->
</head>
<script type="text/javascript">

$(document).ready(function() {
	$('.remove').click(function(){
		var noticeID = $.trim($('#messageid').val());
		$.ajax({
			type: "POST",
			url: "{U('Member/Profile/message_del')}",
			dataType: "json",
			data : {"act":"remove","noticeID":noticeID},
			success: function(strJson){
				var data = strJson.rs;
				if(data ==1){
					popup.prompt("删除站内信成功");
					location.href= "{U('Member/Profile/notice')}";
				}else{
					popup.prompt("删除站内信失败");
				}
			}
			
		});
	});
	
});

</script>
<body>
	
{include template('header','common')}
	<div id="Mainbox">
		<!--插入侧边栏-->
{include template('sidebar_login','common')}
		<!--插入侧边栏-->
		<!--顶端公告-->
		{include template('top_advance','common')}
		<!-- 左侧 -->
{include template('member_left','common')}
	<!--右侧-->
		<div class="percenter_right">	
			<div class="aboutper_znx3">
				<p class="a1" style="margin-bottom:15px;">我的站内信<span></p><!--15条信息-->
				<input type="hidden" id="messageid" name="messageid" value="{$id}"/>
				<ul class="znx_content">
					<li class="title"><strong>标题：</strong>{$info[subject]}<a href="javascript:void(0);" class="b40link remove">删除该信件</a></li>
					<li class="txt"><div class="content">{$info[content]}</div></li>
				{if $pre_article}	<li class="a1 prev"></>上一条信件：<a href="{U('Member/Profile/notice_content',array('id'=>$pre_article['messageid']))}" title="{$pre_article['subject']}">{$pre_article['subject']}</a></li>{/if}
					<li class="a2 next"></>{if $next_article}下一条信件：<a href="{U('Member/Profile/notice_content',array('id'=>$next_article['messageid']))}" title="{$next_article['subject']}">{$next_article['subject']}</a>{else}这已是最后一篇{/if}</li>
				</ul>
			</div>
		</div>
		<!--右侧-->
		<div class="clear"></div>
	</div>
	<!--主体-->
{include template('footer','common')}
</body>
</html>
